package com.scnu.yxp.picture.tool;

import java.awt.Graphics;

import com.scnu.yxp.picture.PictureFrame;

public class LineTool extends AbstractTool {
	private static Tool tool = null;

	private LineTool(PictureFrame frame) {
		super(frame);
		// super.setShape( new LineShape() );
	}

	public static Tool getInstance(PictureFrame frame) {
		if (tool == null) {
			tool = new LineTool(frame);
		}
		return tool;
	}
	
	public void draw(Graphics g, int x1, int y1, int x2, int y2) {
		g.drawLine(x1, y1, x2, y2);
	}

}
